<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加学生</title>
</head>
<body>
<form method="post" action="insertStudent">
    学生名字:<input type="text" name="name"><br>
    学生密码:<input type="text" name="password"><br>
    学生性别:<input type="text" name="sex"><br>
    学生年龄:<input type="text" name="age"><br>
    学生班级:<select name="cls_id">
                {foreach(selectClasses as $key=>$value)}
                    <option value="{$value.id}">{$value.name}</option>
                {/foreach}
            </select><br>

    科目:
    {foreach(selectCourse as $k=>$v)}
        {$v.name}:<input type="checkbox" name="c_id[{$v.id}]" value="{$v.id}">&nbsp &nbsp
    {/foreach}

    <button type="submit">添加学生</button>
</form>
</body>
</html>